import { DigSpaceList } from './matchstickDataMap';
type DigValue = null | number;

export type DigMap = {
	name?: string;
	digData: DigSpaceList;
	position: { x: number; y: number };
	digValue: DigValue;
};

export const levelData: {
	content: string;
	digMap: DigMap | DigMap[];
	answer?: number;
}[] = [
	{
		//1
		content: '移动火柴棒，将3变成5',
		digMap: {
			digData: [1, 1, 1, 1, 1, 0, 0],
			position: { x: 2, y: -157 },
			digValue: null,
		},
		answer: 5,
	},
	{
		//2
		content: '移动火柴棒，将2变成3',
		digMap: {
			digData: [1, 1, 1, 0, 1, 1, 0],
			position: { x: 2, y: -157 },
			digValue: null,
		},
		answer: 3,
	},
	{
		//3
		content: '移动火柴棒，将6变成9',
		digMap: {
			digData: [1, 1, 0, 1, 1, 1, 1],
			position: { x: 2, y: -157 },
			digValue: null,
		},
		answer: 9,
	},
	{
		//第4关
		content: '移动火柴棒，使得算式成立',
		digMap: [
			{
				name: 'a',
				digData: [1, 1, 1, 1, 1, 0, 1],
				position: { x: -675, y: -153 },
				digValue: 9,
			},
			{
				name: 'b',
				digData: [1, 1, 1, 1, 1, 0, 1],
				position: { x: -141, y: -153 },
				digValue: 9,
			},
			{
				name: 'c',
				digData: [0, 0, 1, 1, 0, 0, 0],
				position: { x: 392, y: -153 },
				digValue: 1,
			},
			{
				name: 'd',
				digData: [1, 1, 0, 1, 1, 0, 1],
				position: { x: 673, y: -153 },
				digValue: 5,
			},
		],
	},
	{
		//5
		content: '移动火柴棒，使得算式成立',
		digMap: [
			{
				name: 'a',
				digData: [1, 1, 0, 1, 1, 0, 1],
				position: { x: -675, y: -153 },
				digValue: 5,
			},
			{
				name: 'b',
				digData: [1, 1, 1, 1, 1, 0, 0],
				position: { x: -141, y: -153 },
				digValue: 3,
			},
			{
				name: 'c',
				digData: [0, 0, 1, 1, 0, 0, 0],
				position: { x: 392, y: -153 },
				digValue: 1,
			},
			{
				name: 'd',
				digData: [1, 1, 0, 1, 1, 0, 1],
				position: { x: 673, y: -153 },
				digValue: 5,
			},
		],
	},
	{
		//6
		content: '移动火柴棒，使得算式成立',
		digMap: [
			{
				name: 'a',
				digData: [1, 0, 1, 1, 0, 0, 1],
				position: { x: -675, y: -153 },
				digValue: 4,
			},
			{
				name: 'b',
				digData: [1, 1, 1, 1, 1, 0, 0],
				position: { x: -141, y: -153 },
				digValue: 3,
			},
			{
				name: 'c',
				digData: [0, 0, 1, 1, 0, 0, 0],
				position: { x: 392, y: -153 },
				digValue: 1,
			},
			{
				name: 'd',
				digData: [1, 1, 0, 1, 1, 1, 1],
				position: { x: 673, y: -153 },
				digValue: 6,
			},
		],
	},
	{
		//7
		content: '移动火柴棒，使得算式成立',
		digMap: [
			{
				name: 'a',
				digData: [1, 0, 1, 1, 0, 0, 1],
				position: { x: -675, y: -153 },
				digValue: 4,
			},
			{
				name: 'b',
				digData: [1, 0, 1, 1, 0, 0, 1],
				position: { x: -141, y: -153 },
				digValue: 4,
			},
			{
				name: 'c',
				digData: [1, 1, 1, 1, 1, 0, 1],
				position: { x: 392, y: -153 },
				digValue: 9,
			},
		],
	},
	{
		//8
		content: '移动火柴棒，使得算式成立',
		digMap: [
			{
				name: 'a',
				digData: [1, 1, 0, 1, 1, 1, 1],
				position: { x: -675, y: -153 },
				digValue: 6,
			},
			{
				name: 'b',
				digData: [1, 0, 1, 1, 0, 0, 1],
				position: { x: -141, y: -153 },
				digValue: 4,
			},
			{
				name: 'c',
				digData: [1, 1, 1, 1, 1, 0, 0],
				position: { x: 392, y: -153 },
				digValue: 3,
			},
		],
	},
	{
		//9
		content: '移动火柴棒，使得算式成立',
		digMap: [
			{
				name: 'a',
				digData: [0, 1, 1, 1, 0, 0, 0],
				position: { x: -675, y: -153 },
				digValue: 7,
			},
			{
				name: 'b',
				digData: [0, 0, 1, 1, 0, 0, 0],
				position: { x: -141, y: -153 },
				digValue: 1,
			},
			{
				name: 'c',
				digData: [1, 1, 1, 1, 1, 1, 1],
				position: { x: 392, y: -153 },
				digValue: 8,
			},
		],
	},
	{
		//10
		content: '移动火柴棒，使得算式成立',
		digMap: [
			{
				name: 'a',
				digData: [0, 0, 1, 1, 0, 0, 0],
				position: { x: -675, y: -153 },
				digValue: 1,
			},
			{
				name: 'b',
				digData: [1, 0, 1, 1, 0, 0, 1],
				position: { x: -410, y: -153 },
				digValue: 4,
			},
			{
				name: 'c',
				digData: [1, 1, 1, 1, 1, 0, 0],
				position: { x: 124, y: -153 },
				digValue: 3,
			},
			{
				name: 'd',
				digData: [1, 1, 0, 1, 1, 1, 1],
				position: { x: 673, y: -153 },
				digValue: 6,
			},
		],
	},
	{
		//11
		content: '移动火柴棒，使得算式成立',
		digMap: [
			{
				name: 'a',
				digData: [0, 0, 1, 1, 0, 0, 0],
				position: { x: -675, y: -153 },
				digValue: 1,
			},
			{
				name: 'b',
				digData: [0, 1, 1, 1, 0, 0, 0],
				position: { x: -410, y: -153 },
				digValue: 7,
			},
			{
				name: 'c',
				digData: [0, 0, 1, 1, 0, 0, 0],
				position: { x: 124, y: -153 },
				digValue: 1,
			},
			{
				name: 'd',
				digData: [1, 1, 1, 1, 1, 0, 0],
				position: { x: 673, y: -153 },
				digValue: 3,
			},
		],
	},
	{
		// 12
		content: '移动火柴棒，使得算式成立',
		digMap: [
			{
				name: 'a',
				digData: [1, 1, 1, 1, 1, 0, 1],
				position: { x: -675, y: -153 },
				digValue: 9,
			},
			{
				name: 'b',
				digData: [1, 1, 1, 1, 1, 1, 1],
				position: { x: -141, y: -153 },
				digValue: 8,
			},
			{
				name: 'c',
				digData: [0, 0, 1, 1, 0, 0, 0],
				position: { x: 392, y: -153 },
				digValue: 1,
			},
			{
				name: 'd',
				digData: [1, 1, 1, 1, 1, 0, 0],
				position: { x: 673, y: -153 },
				digValue: 3,
			},
		],
	},
	{
		//13
		content: '移动火柴棒，使得算式成立',
		digMap: [
			{
				name: 'a',
				digData: [1, 1, 1, 1, 1, 0, 0],
				position: { x: -675, y: -153 },
				digValue: 3,
			},
			{
				name: 'b',
				digData: [1, 1, 1, 1, 1, 0, 0],
				position: { x: -141, y: -153 },
				digValue: 3,
			},
			{
				name: 'c',
				digData: [0, 0, 1, 1, 0, 0, 0],
				position: { x: 392, y: -153 },
				digValue: 1,
			},
			{
				name: 'd',
				digData: [0, 1, 1, 1, 0, 0, 0],
				position: { x: 673, y: -153 },
				digValue: 7,
			},
		],
	},
	{
		//14
		content: '移动火柴棒，使得算式成立',
		digMap: [
			{
				name: 'a',
				digData: [1, 1, 0, 1, 1, 0, 1],
				position: { x: -675, y: -153 },
				digValue: 5,
			},
			{
				name: 'b',
				digData: [1, 1, 1, 1, 1, 0, 0],
				position: { x: -141, y: -153 },
				digValue: 3,
			},
			{
				name: 'c',
				digData: [0, 1, 1, 1, 0, 0, 0],
				position: { x: 392, y: -153 },
				digValue: 7,
			},
			{
				name: 'd',
				digData: [1, 1, 1, 1, 1, 1, 1],
				position: { x: 673, y: -153 },
				digValue: 8,
			},
		],
	},
	{
		//15
		content: '移动1根火柴棒，使得算式成立',
		digMap: [
			{
				name: 'a',
				digData: [1, 1, 1, 1, 1, 0, 0],
				position: { x: -675, y: -153 },
				digValue: 3,
			},
			{
				name: 'b',
				digData: [1, 1, 1, 1, 1, 0, 1],
				position: { x: -141, y: -153 },
				digValue: 9,
			},
			{
				name: 'c',
				digData: [0, 0, 1, 1, 0, 0, 0],
				position: { x: 392, y: -153 },
				digValue: 1,
			},
			{
				name: 'd',
				digData: [0, 1, 1, 1, 0, 0, 0],
				position: { x: 673, y: -153 },
				digValue: 7,
			},
		],
	},
	{
		//16
		content: '移动1根火柴棒，使得算式成立',
		digMap: [
			{
				name: 'a',
				digData: [1, 1, 0, 1, 1, 0, 1],
				position: { x: -675, y: -153 },
				digValue: 5,
			},
			{
				name: 'b',
				digData: [1, 1, 1, 1, 1, 0, 1],
				position: { x: -141, y: -153 },
				digValue: 9,
			},
			{
				name: 'c',
				digData: [0, 0, 1, 1, 0, 0, 0],
				position: { x: 392, y: -153 },
				digValue: 1,
			},
			{
				name: 'd',
				digData: [1, 1, 1, 0, 1, 1, 0],
				position: { x: 673, y: -153 },
				digValue: 2,
			},
		],
	},
	{
		//17
		content: '移动1根火柴棒，使得算式成立',
		digMap: [
			{
				name: 'a',
				digData: [1, 1, 1, 1, 1, 0, 1],
				position: { x: -675, y: -153 },
				digValue: 9,
			},
			{
				name: 'b',
				digData: [1, 1, 1, 1, 1, 0, 1],
				position: { x: -141, y: -153 },
				digValue: 9,
			},
			{
				name: 'c',
				digData: [0, 0, 1, 1, 0, 0, 0],
				position: { x: 392, y: -153 },
				digValue: 1,
			},
			{
				name: 'd',
				digData: [1, 1, 1, 1, 1, 0, 0],
				position: { x: 673, y: -153 },
				digValue: 3,
			},
		],
	},
	{
		//18
		content: '移动1根火柴棒，使得算式成立',
		digMap: [
			{
				name: 'a',
				digData: [0, 0, 1, 1, 0, 0, 0],
				position: { x: -675, y: -153 },
				digValue: 1,
			},
			{
				name: 'b',
				digData: [0, 1, 1, 1, 0, 0, 0],
				position: { x: -410, y: -153 },
				digValue: 7,
			},
			{
				name: 'c',
				digData: [1, 1, 1, 1, 1, 0, 1],
				position: { x: 124, y: -153 },
				digValue: 9,
			},
			{
				name: 'd',
				digData: [1, 1, 1, 1, 1, 0, 0],
				position: { x: 673, y: -153 },
				digValue: 3,
			},
		],
	},
	{
		//19
		content: '移动1根火柴棒，使得算式成立',
		digMap: [
			{
				name: 'a',
				digData: [0, 0, 1, 1, 0, 0, 0],
				position: { x: -675, y: -153 },
				digValue: 1,
			},
			{
				name: 'b',
				digData: [0, 1, 1, 1, 1, 1, 1],
				position: { x: -410, y: -153 },
				digValue: 0,
			},
			{
				name: 'c',
				digData: [1, 1, 1, 1, 1, 0, 1],
				position: { x: 124, y: -153 },
				digValue: 9,
			},
			{
				name: 'd',
				digData: [1, 1, 1, 1, 1, 1, 1],
				position: { x: 673, y: -153 },
				digValue: 8,
			},
		],
	},
	{
		//20
		content: '移动1根火柴棒，使得算式成立',
		digMap: [
			{
				name: 'a',
				digData: [0, 0, 1, 1, 0, 0, 0],
				position: { x: -675, y: -153 },
				digValue: 1,
			},
			{
				name: 'b',
				digData: [0, 0, 1, 1, 0, 0, 0],
				position: { x: -410, y: -153 },
				digValue: 1,
			},
			{
				name: 'c',
				digData: [1, 1, 1, 1, 1, 0, 1],
				position: { x: 124, y: -153 },
				digValue: 9,
			},
			{
				name: 'd',
				digData: [1, 1, 1, 1, 1, 0, 1],
				position: { x: 673, y: -153 },
				digValue: 9,
			},
		],
	},
];
